home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmQuiz
- Caption = "Quiz"
- ClientHeight = 2496
- ClientLeft = 2112
- ClientTop = 1740
- ClientWidth = 2568
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 7.8
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2496
- ScaleWidth = 2568
- Begin VB.PictureBox picSolution
- Height = 495
- Left = 120
- ScaleHeight = 444
- ScaleWidth = 2244
- TabIndex = 2
- Top = 1800
- Width = 2295
- End
- Begin VB.CommandButton cmdInterpret
- Caption = "Interpret Answer"
- Height = 495
- Left = 120
- TabIndex = 1
- Top = 1080
- Width = 2295
- End
- Begin VB.TextBox txtName
- Height = 285
- Left = 120
- TabIndex = 0
- Top = 600
- Width = 2295
- End
- Begin VB.Label lblQuestion
- Alignment = 2 'Center
- Caption = "What was President Wilson's first name ?"
- Height = 495
- Left = 240
- TabIndex = 3
- Top = 120
- Width = 1935
- End
- Attribute VB_Name = "frmQuiz"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdInterpret_Click()
- Dim firstName As String
- 'Quiz
- picSolution.Cls
- firstName = txtName.Text
- Select Case firstName
- Case "Thomas"
- picSolution.Print "Correct."
- Case "Woodrow"
- picSolution.Print "Sorry, his full name was"
- picSolution.Print "Thomas Woodrow Wilson."
- Case "President"
- picSolution.Print "Are you for real?"
- Case Else
- picSolution.Print "Nice try, but no cigar."
- End Select
- End Sub
-